import 'package:flutter/material.dart';
import '../helper/menuHelper.dart';
import '../widgets/inputWidget.dart';

import 'menu_item.dart';

class ServiceCategories extends StatelessWidget {
  void pp() {}

  @override
  Widget build(BuildContext context) {
    List<MenuItemViewModel> serviceList = [];
    serviceList.add(MenuItemViewModel(
        Icon(
          Icons.pages,
          size: 36.0,
        ),
        "hhh",
        pp));
    serviceList.add(MenuItemViewModel(
        Icon(
          Icons.pages,
          size: 36.0,
        ),
        "hhh",
        pp));
    serviceList.add(MenuItemViewModel(
        Icon(
          Icons.pages,
          size: 36.0,
        ),
        "hhh",
        pp));
    serviceList.add(MenuItemViewModel(
        Icon(
          Icons.pages,
          size: 36.0,
        ),
        "hhh",
        pp));
    serviceList.add(MenuItemViewModel(
        Icon(
          Icons.pages,
          size: 36.0,
        ),
        "hhh",
        pp));
    serviceList.add(MenuItemViewModel(
        Icon(
          Icons.pages,
          size: 36.0,
        ),
        "hhh",
        pp));
    serviceList.add(MenuItemViewModel(
        Icon(
          Icons.pages,
          size: 36.0,
        ),
        "hhh",
        pp));

/*
    return InputWidget.inCard(Column(children:[  Container(
      height: 250.0,
      child: GridView.count(
      crossAxisCount: 4,
      padding: EdgeInsets.symmetric(vertical: 0),
      children: serviceList.map((item) => MenuItem(data: item)).toList(),
      semanticChildCount: 10,
      //scrollDirection: Axis.vertical,
    ))]));*/

    return SingleChildScrollView(
        child: Column(children: [
      MenuHelper.getMenuCard(
          "数据查询",
          serviceList.map((item) => MenuItem1(data: item)).toList()
              as List<Widget>),
      MenuHelper.getMenuCard(
          "数据查询",
          serviceList.map((item) => MenuItem1(data: item)).toList()
              as List<Widget>),
      MenuHelper.getMenuCard(
          "数据查询",
          serviceList.map((item) => MenuItem1(data: item)).toList()
              as List<Widget>),
      MenuHelper.getMenuCard(
          "数据查询",
          serviceList.map((item) => MenuItem1(data: item)).toList()
              as List<Widget>),
      MenuHelper.getMenuCard(
          "数据查询",
          serviceList.map((item) => MenuItem1(data: item)).toList()
              as List<Widget>),
    ]));
  }
}
